import Vue from 'vue'
import Index from '../src/pages/Index/page.vue';
import Login from '../src/pages/Login/page.vue';

// 企业列表
const EnterPriseList = () => import(/* webpackChunkName: "lazychunk_data" */ '@/src/pages/EnterPriseList/page.vue')

// 充值
const InvestMoney = () => import(/* webpackChunkName: "lazychunk_data" */ '@/src/pages/InvestMoney/page.vue')

// 新增企业
const EnterPriseAdd = () => import(/* webpackChunkName: "lazychunk_data" */ '@/src/pages/EnterPriseAdd/page.vue')


// 任务列表
const TaskList = () => import(/* webpackChunkName: "lazychunk_data" */ '@/src/pages/TaskList/page.vue')

// 发票申请
const InvoiceApplication = () => import(/* webpackChunkName: "lazychunk_data" */ '@/src/pages/InvoiceApplication/page.vue')

// 错误页面
const Error = () => import(/* webpackChunkName: "lazychunk_data" */ '@/src/pages/Error/page.vue');

export const pages = [
    {
        path: '/',
        name: 'login',
        title: '登录',
        component: Login
    },
    {
        path: '/index',
        name: '首页',
        component: Index,
        title: '首页',
        children: [
            {
                path: '/enterPriseList',
                name: '企业列表',
                component: EnterPriseList,
            },
            {
                path: '/enterPriseAdd',
                name: '新增企业',
                component: EnterPriseAdd
            },
            {
                path: '/taskList',
                name: '任务列表',
                component: TaskList,
            },
            {
                path: '/investMoney',
                name: '充值',
                component: InvestMoney
            },
            {
                path: '/invoiceApplication',
                name: '发票申请',
                component: InvoiceApplication
            },
            
        ]
    },
    {
    	path:'*',
    	name:'404',
    	component:Error
    }
]

export default {
  pages
}
